package com.caifu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 用户数据权限表
 * </p>
 *
 * @author szt
 * @since 2020-08-12
 */
public class SysUserDataAuth extends Model<SysUserDataAuth> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "auth_no", type = IdType.AUTO)
    private Long authNo;

    /**
     * 用户编号
     */
    private Long userNo;

    /**
     * 组织机构id
     */
    private Long orgId;

    /**
     * 层级level
     */
    private String orgLevel;

    /**
     * 父级组织机构id
     */
    private Long parentOrgId;

    /**
     * 是否实际勾选 1-是 0-否
     */
    private String type;

    /**
     * 创建人
     */
    private Long createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    public Long getAuthNo() {
        return authNo;
    }

    public void setAuthNo(Long authNo) {
        this.authNo = authNo;
    }
    public Long getUserNo() {
        return userNo;
    }

    public void setUserNo(Long userNo) {
        this.userNo = userNo;
    }
    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }
    public String getOrgLevel() {
        return orgLevel;
    }

    public void setOrgLevel(String orgLevel) {
        this.orgLevel = orgLevel;
    }
    public Long getParentOrgId() {
        return parentOrgId;
    }

    public void setParentOrgId(Long parentOrgId) {
        this.parentOrgId = parentOrgId;
    }
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.authNo;
    }

    @Override
    public String toString() {
        return "SysUserDataAuth{" +
        "authNo=" + authNo +
        ", userNo=" + userNo +
        ", orgId=" + orgId +
        ", orgLevel=" + orgLevel +
        ", parentOrgId=" + parentOrgId +
        ", type=" + type +
        ", createBy=" + createBy +
        ", createTime=" + createTime +
        "}";
    }

	public SysUserDataAuth(Long userNo, Long orgId, String orgLevel, Long parentOrgId, String type, Long createBy,
			Date createTime) {
		super();
		this.userNo = userNo;
		this.orgId = orgId;
		this.orgLevel = orgLevel;
		this.parentOrgId = parentOrgId;
		this.type = type;
		this.createBy = createBy;
		this.createTime = createTime;
	}

	public SysUserDataAuth() {
		super();
	}
    
    
}
